<%var body = {
	var formId = 'detailForm' + object.code;
%>

<body>

<#form id="${formId}" objectCode="${object.code}" data="${record!}" />

<script type="text/javascript">

$(function(){
	// 禁用表单，注销事件，仅供查看
	$(document).ready(function(){
		// 禁用事件
		$(this).find('input,select,textarea').attr('disabled',true);
		$(this).find('input,select,textarea').attr('readonly',true);
		$(this).find('input,i,div').unbind();
		
		// 移除无用DOM
		$('.eova-img').remove();
		$('.eova-icon').remove();
		$('.status_bar').remove();
		$('.upload_choose').remove();
		$('.jsoneditor-menu').remove();
		$('.wangEditor-menu-container').remove();
		
		// 控件美白 background-color
		$('input,textarea').parent().css('background-color','rgb(255, 255, 255)');
		// 布尔框不用覆盖背景
		$('.eova-bool').css('background-color','');
		$('input,textarea').css('background','none');
		$('input,textarea').css('border','none');
		$('textarea').css('resize','none');
		$('.eova-form-label').append('：');
		
		// 隐藏下拉初始状态
		$('.eova-combo').each(function(){
			if($(this).eovacombo().getValue() == '')
				$(this).eovacombo().setText("");
		});
	});
});

var btnSaveCallback = function($dialog, ID, $pjq) {
};
var EOVA_FORM = "detail";
</script>

<%if(!isEmpty(object.diy_js!)){%>
<script type="text/javascript" src="${object.diy_js}?v=${VER!}"></script>
<%}%>

<%};include("/eova/layout/form.html",{'title' : object.name + ' detail', 'layoutContent' : body, 'isEditor' : true}){}%>